first_tab = gtk_notebook_search_page (notebook, priv->first_tab,
(pointer_position == POINTER_BEFORE) ? STEP_PREV : STEP_NEXT,
TRUE);
- if (first_tab)
+ if (first_tab && priv->cur_page)
{
priv->first_tab = first_tab;
gtk_notebook_pages_allocate (notebook);
priv->dnd_timer = 0;
}
+ g_assert (priv->cur_page != NULL);
+
priv->operation = DRAG_OPERATION_DETACH;
gtk_notebook_pages_allocate (notebook);
goto out;
}
+ g_assert (priv->cur_page != NULL);
+
stop_scrolling (notebook);
target = gtk_drag_dest_find_target (widget, context, NULL);
tab_target = gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB");
GtkAllocation child_allocation = { 0, };
GtkOrientation tab_expand_orientation;
+ g_assert (priv->cur_page != NULL);
+
widget = GTK_WIDGET (notebook);
container = GTK_CONTAINER (notebook);
gtk_widget_style_get (widget, "tab-overlap", &tab_overlap, NULL);